package com.keliangliu.demo;

import com.keliangliu.demo.bean.BeanDemo;
import com.keliangliu.demo.elk.ElkServiceBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
 import javax.validation.constraints.NotNull;

@SpringBootApplication
public class DemoApplication implements ApplicationRunner {


//    @Autowired
//    private ElkServiceBiz elkServiceBiz;

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        elkServiceBiz.indexInsert();
    }
}
